package com.ruibang.glass.produce.controller.tr;

import com.ruibang.glass.produce.domain.req.Cold1DispatchReq;
import com.ruibang.glass.produce.entity.Cold1Dispatch;
import com.ruibang.glass.produce.service.Cold1DispatchService;
import com.teaming.cloud.framework2.common.model.ResultBody;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: songJinKang
 * @CreateTime: 2024-06-06  14:21
 * @Description: TODO
 * @Version: 1.0
 */

@Api(tags = "冷端一号线调度数据控制器")
@RestController
@RequestMapping("/api/produce/tr/cold1Dispatch")
public class Cold1DispatchController {

    @Autowired
    private Cold1DispatchService cold1DispatchService;

    @PostMapping("/getData")
    @ApiOperation(value = "获取调度数据", response = ResultBody.class)
    public ResultBody<Cold1Dispatch> getData(@RequestBody Cold1DispatchReq cold1DispatchReq) {
        return ResultBody.success(cold1DispatchService.getData(cold1DispatchReq));
    }

}
